home *** CD-ROM | disk | FTP | other *** search
- Set dtmConvertedDate = CreateObject("WbemScripting.SWbemDateTime")
- strComputer = "."
- strResultat=""
- Set objWMIService = GetObject("winmgmts:" _
- & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
- Set colOperatingSystems = objWMIService.ExecQuery _
- ("Select * from Win32_OperatingSystem")
- For Each objOperatingSystem in colOperatingSystems
- strResultat=strResultat & objOperatingSystem.Caption & vbCR
- strResultat=strResultat & "Version: " & objOperatingSystem.Version & vbCR
- strResultat=strResultat & "NumΘro de sΘrie: " & objOperatingSystem.SerialNumber & vbCR
- strResultat=strResultat & "Langue: " & objOperatingSystem.OSLanguage & vbCR
- strResultat=strResultat & "Code pays: " & objOperatingSystem.CountryCode & vbCR
- strResultat=strResultat & "Utilisateur enregistrΘ: " & objOperatingSystem.RegisteredUser & vbCR
- strResultat=strResultat & "Organisation: " & objOperatingSystem.Organization & vbCR
- dtmConvertedDate.Value = objOperatingSystem.InstallDate
- dtmInstallDate = dtmConvertedDate.GetVarDate
- strResultat=strResultat & "Date installation: " & dtmInstallDate & vbCR
- Next
- WScript.echo strResultat